let store = {
  storage: {},
  set(key, session) {
    this.storage[key] = session
  },
  get(key) {
    return this.storage[key]
  },
  destroy(key) {
    delete this.storage[key]
  },
}
let CONFIG = {
  // 加密信息
  key: 'koa:session',
  // 过期时间
  maxAge: 86400000,
  autoCommit: true,
  overwrite: true,
  httpOnly: true,
  // signed 是否加密
  signed: true,
  // rolling 获取session时是否重新刷新过期时间
  rolling: false,
  renew: false,
  sameSite: null,
  store,
}

module.exports = CONFIG
